package com.hqyj.demo.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * id	int	主键id
 * code	varchar	物品编号
 * model	varchar	物品类型
 * name	varchar	物品名字
 * num	int	物品数量
 * price	float	物品单价
 * total	float	物品总价
 * unit	varchar	物品单位
 * sale_list_id	int	销售id
 * type_id	int	类型id
 * goods_id	int	物品id
 */

@Data
public class SaleGoods implements Serializable {

    //主键id
    private Integer id;

    //商品编号
    private String code;

    //商品型号
    private String model;

    //商品名称
    private String name;


    //商品数量
    private Integer number;

    //商品单价
    private Float price;

    //商品总金额
    private Float total;

    //计量单位
    private String unit;

    //入库单据id
    private Integer saleId;

    //商品类型id
    private Integer typeId;
    //类型对象
    private Goodstype goodstype;

    //商品id
    private Integer goodsId;
    //商品对象
    private Goods goods;

    public SaleGoods() {
    }

    public SaleGoods(Integer id, String code, String model, String name, Integer number, Float price, Float total, String unit, Integer saleId, Integer typeId, Integer goodsId) {
        this.id = id;
        this.code = code;
        this.model = model;
        this.name = name;
        this.number = number;
        this.price = price;
        this.total = total;
        this.unit = unit;
        this.saleId = saleId;
        this.typeId = typeId;
        this.goodsId = goodsId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getTotal() {
        return total;
    }

    public void setTotal(Float total) {
        this.total = total;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getSaleId() {
        return saleId;
    }

    public void setSaleId(Integer saleId) {
        this.saleId = saleId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Goodstype getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(Goodstype goodstype) {
        this.goodstype = goodstype;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }
}
